package com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_month.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_month.entity.TElectricityCostRecordsMonth;
import com.xjrsoft.module.customerTwo.EMP.electricity_cost_records_month.dto.TElectricityCostRecordsMonthListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 *  服务类
 *
 * @author dongxinhang
 * @since 2023-07-24
 */
public interface ITElectricityCostRecordsMonthService extends IService<TElectricityCostRecordsMonth> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<TElectricityCostRecordsMonth> getPageList(TElectricityCostRecordsMonthListDto pageListDto);

	/**
	 * 根据日电量记录汇总月电量记录
	 * @param start 日期范围始 yyyy-MM-dd
	 * @param end 日期范围止 yyyy-MM-dd
	 * @return
	 */
	int insertDataByDay(String start, String end);

	List<Map<String,Object>> exportExcel(TElectricityCostRecordsMonthListDto dto);

	IPage<Map<String,Object>> queryPage(Page page,TElectricityCostRecordsMonthListDto dto);
}
